<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2703. 返回传递的参数的长度</title>
</head>

<body>

</body>

<script>
    /**
     * @param {...(null|boolean|number|string|Array|Object)} args
     * @return {number}
     */
    var argumentsLength = function (...args) {
        return args.length;
    };

    /**
     * argumentsLength(1, 2, 3); // 3
     */
</script>

</html>